import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { NativeService } from '../../../service/NativeService';
import { HistoryPage } from '../history/history';
@Component({
  selector: 'page-deposit',
  templateUrl: 'deposit.html',
})
export class DepositPage {

  private money:number;

  constructor(public navCtrl: NavController,

              public nat: NativeService) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad DepositPage');
  }
  selectMoney(money){
    this.money = money;
  }

  gotoPageAction(){
    this.navCtrl.push(HistoryPage,{title:"存款记录"});
  }

  payAction(type){



    if (this.money <= 0){
      this.nat.showToast('请输入充值金额');
      return;
    }
    if (type == 1){
      //支付宝
    }else if(type == 2){
      //微信
    }else if(type == 3){
      //银联
    }
    console.log(this.money);

  }
}
